/**  
* @Title: BasicVO.java
* @Package cn.net.mtons.weixin.vo
* @Description: TODO
* @author ma jinjian  
* @date 2016年2月7日 下午1:09:50
* @version V1.0  
*/ 
package cn.net.mtons.weixin;

import java.util.Date;

import cn.net.mtons.weixin.utils.MtonsMessageUtil;

/**
 * @ClassName: BasicVO
 * @Description: TODO
 * @author ma jinjian
 * @date 2016年2月7日 下午1:09:50
 *
 */
public class MtonsBasicVO {
	
	private String toUserName;
	
	private String fromUserName;
	
	private String createTime;
	
	public String getToUserName() {
		return toUserName;
	}

	public void setToUserName(String toUserName) {
		this.toUserName = toUserName;
	}

	public String getFromUserName() {
		return fromUserName;
	}

	public void setFromUserName(String fromUserName) {
		this.fromUserName = fromUserName;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "MtonsBasicVO [toUserName=" + toUserName + ", fromUserName="
				+ fromUserName + ", createTime=" + createTime + "]";
	}
	
	public String toXml(){
		MtonsMessageUtil util = new MtonsMessageUtil();
		util.addData("ToUserName", this.getToUserName());
		util.addData("FromUserName", this.getToUserName());
		util.addData("CreateTime", new Date().getTime()+"");
		return util.toString();
	}
}
